process_name="python -u main_run.py"
pid=`ps -ef | grep "$process_name" | grep -v grep | awk '{print $2}'`
echo "Killing process $pid"
for item  in $pid
do
   kill -s 9 $item
   echo "已经kill进程: $item"
done

sleep 2

nohup python -u main_run.py >> ./logs/main_run.log 2>&1 &


